package chappter04.Example14;
class Animal16{
    public void shout(){
        System.out.println("喵喵......");
    }
}
class Dog16 extends Animal{
    public void shout(){
        System.out.println("汪汪......");
    }
    public void eat(){
        System.out.println("吃骨头......");
    }
}
public class Example16 {
    public static void main(String[] args) {
        Animal an = new Dog();
        Dog16 dog16 = (Dog16) an;
        dog16.shout();
        dog16.eat();
    }
}
